﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimulationCore.Net;
using SimulationPresenter.Presentation.Primitives;

namespace SimulationPresenter.Simulation
{
    public class SimulationEnvironment
    {
        private SimulationProvider core;

        /// <summary>
        /// Returns simulation core allowing elements call core fuctions (like Actor creation)
        /// </summary>
        public SimulationProvider Core 
        { 
            get
            {
                if (null == core)
                {
                    core = new SimulationProvider();
                    core.Setup();
                }
                return core;
            }
        }
    }
}
